package com.SqlTest2;
public class UserDaoTest{
	public static void main(String[] args){
		Dao companyA = new CompanyADao().userDao();
		
				
		User user = new User("timec","123123","김동준");
		
		String company = "CompanyA";
		
		/*
		 * table 생성
		 */
		companyA.createTable();
		
		
		/*
		 * table 값 입력
		 */
		companyA.insertUser(user);
		
		
		/*
		 * table 값 조회
		 */
		companyA.selectUser("timec");
		
		
		/*
		 * table 값 갱신
		 */
		user.setName("드림인프라");
		user.setPassword("567567");
		companyA.updateUser(user);
		companyA.selectUser("timec");
		
		
		/*
		 * table 값 삭제
		 */
		companyA.deleteUser("timec");
	}
}
